package com.zzs.group.manager;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author zzs
 * 2024/8/13 0013 20:12
 */
public class Test {
    public static void main(String[] args) {
        long seconds = 1711088922;
        Date date = new Date(seconds * 1000L);
        String joinTime = DateUtil.format(date, DatePattern.NORM_DATETIME_FORMATTER);
        System.out.println("joinTime = " + joinTime);
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("joinTime  ").append(joinTime);
        System.out.println("stringBuilder = " + stringBuilder);
    }
}
